export function createInviteWrap() {
    let inviteWrap = document.createElement('div')
    inviteWrap.className = 'invite-wrap'
    inviteWrap.innerHTML = `
        <div class='invite-title'>"赠你20美元，来上课吧！link"</div>
        <div class= "invite-flex">
            <div class='invite-input'>
                <input value='' id="copy" />
                <div class='invite-copy'  data-clipboard-target='#copy' >复制链接</div>
            </div>
            <div class='invite-img-title'>
                    <svg t="1638514428841" class="icon" style='width:24px;height:24px' viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6493" width="200" height="200"><path d="M919.307378 0 104.692622 0C46.925334 0 0 46.812397 0 104.692622L0 919.307378c0 57.880225 46.925334 104.692622 104.692622 104.692622L919.307378 1024c57.880225 0 104.805559-46.755928 104.805559-104.692622L1024.112937 104.692622C1024.112937 46.812397 977.187603 0 919.307378 0zM901.463329 225.478769c0 0-151.617955-55.339142-151.617955 57.259071l0 85.041579 147.891033 0-13.100695 140.493658-134.790339 0 0 478.796515-181.150987 0L568.694386 508.273078 479.925885 508.273078 479.925885 367.77942l88.768501 0L568.694386 282.737841 568.694386 220.001323c0 0-1.863461-114.122863 146.987537-146.987537 104.466748-23.15209 206.053601 10.220801 206.053601 10.220801L901.463329 225.478769z" fill="#e6e6e6" p-id="6494"></path></svg>
                    <div style='margin-left:4px;user-select:none'>facebook</div>
            </div>
        </div>
        <div class='invite-img'>
        </div>
    `
    $('body')[0].appendChild(inviteWrap)


    if (localStorage.getItem('Token')) {

        let invite = JSON.parse(localStorage.getItem('information'))

        let linkps = `${invite_http}?invitation=${invite.invitationcode}`
        $('#copy').val(linkps)
    } else {
        $('#copy').val(`{${invite_http}}?invitation=`)

    }


}

